package com.aliyun.mts.util;

import com.aliyun.api.AliyunClient;
import com.aliyun.api.DefaultAliyunClient;

/**
 * 获取交互客户端的工具类,阿里云建议该对象为全局唯一
 * 
 * @author liwb 2015-11-6 上午11:12:11
 */
public class AliyunClientUtil {

    private static AliyunClient aliyunClient;

    static {
        aliyunClient = new DefaultAliyunClient(AliyunConfig.MTS_SERVER_URL,
                AliyunConfig.accessKeyId, AliyunConfig.accessKeySecret);
    }

    /**
     * 获取交互对象
     * 
     * @return
     */
    public static AliyunClient getAliyunClient() {
        return aliyunClient;
    }
}
